package com.lby.graduation.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lby.graduation.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李兵耀
 * @since 2020-12-29
 */
public interface PostService extends IService<Post> {
    List<Post> selectPost();
    /*MybatisPlus自定义分页查询*/
    List<Post> selectPagePost(IPage<Post> page );
    List<Post> selectUserPost(Integer userId);
    Post selectPostByPostId(Integer postId);
    int deleteByIds(List<Integer> idList);

}
